import { Module } from "@nestjs/common";
import { MongoController } from "./mongo.controller";
import { MongoService } from "./mongo.service";
import { Cat, CatSchema } from "./schemas/cat.schema";
import { MongooseModule } from "@nestjs/mongoose";

/**
 * MongoModule
 *
 * 仅包含基础控制器与服务，方便后续扩展 MongoDB 相关逻辑。
 */
@Module({
  /* 注册 Cat 模型 */
  imports: [MongooseModule.forFeature([{ name: Cat.name, schema: CatSchema }])],
  controllers: [MongoController],
  providers: [MongoService],
  exports: [MongoService],
})
export class MongoModule {}
